import React from 'react';
import { Modal } from 'antd';

interface IProps {
  destroyOnClose?: boolean;
  className?: string;
  children: React.ReactNode;
  title?: string;
  open?: boolean;
  onOk?: () => void;
  onCancel?: () => void;
  cancelText?: string;
  okText?: string;
  footer?: boolean | undefined | null;
}

const CusModal: React.FC<IProps> = props => {

  const { children, ...otherParams } = props;

  return (
    <Modal {...otherParams} >
      { children }
    </Modal>
  );

};

export default CusModal;